package fina2.dcs.fis;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "IN_BANK_GROUPS")
@SuppressWarnings("serial")
public class BankGroup implements Serializable {
	private BigDecimal id;
	private String code;
	private BigDecimal nameStrId;
	private BigDecimal criterionId;
	private String description;
	private String parentDesc;

	@Id
	@Column(name = "ID")
	public BigDecimal getId() {
		return id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@Column(name = "CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "NAMESTRID")
	public BigDecimal getNameStrId() {
		return nameStrId;
	}

	public void setNameStrId(BigDecimal nameStrId) {
		this.nameStrId = nameStrId;
	}

	@Column(name = "CRITERIONID")
	public BigDecimal getCriterionId() {
		return criterionId;
	}

	public void setCriterionId(BigDecimal criterionId) {
		this.criterionId = criterionId;
	}

	@Transient
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Transient
	public String getParentDesc() {
		return parentDesc;
	}

	public void setParentDesc(String parentDesc) {
		this.parentDesc = parentDesc;
	}

	public String toString() {
		return code + "/" + description;
	}
}